<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>实习报告详情</title>
		<script src="../../script/mui.min.js"></script>
		<link href="../../css/weui.min.css" rel="stylesheet"/>
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/attachmentCss.css">
		<style type="text/css" media="screen">
			.title {
				font-size: 14px;
			}
			.summary_div .feeling {
				padding-bottom: 1px;
			}
			.feeling {
				border-bottom: 1px solid #ededed;
				padding-left: 14px;
			}
			.title {
				border-left: unset;
			}
			.score_div .feeling-text {
				/*text-indent: 2em;*/
				background-size: 16px;
				margin-top: 15px;
				margin: 10px;
			}
			.score_div .feeling-text p {
				color: #646464;
				padding: 2px 2px;
			}
			.bottom_btn_div {
				color: #FFF;
				height: 45px;
				width: 100%;
				z-index: 995;
				border-top: 1px solid #d9d9d9;
				position: fixed;
				bottom: 0px;
				left: 0px;
				text-align: center;
				margin-top: 23px;
			}
			.bottom_btn_div a {
				line-height: 45px;
				font-size: 14px;
				background: #18b4ed;
				width: 100%;
				color: #FFF;
			}
			.content_div {
				margin-top: 66px
			}
			.comment_div {
				padding-right: 20px;
				margin-top: 10px
			}
			.score_div .feeling-text {
				text-indent: 2em;
				background-size: 16px;
				margin-top: 15px;
				margin: 10px;
			}
			.score_div .feeling-text p {
				color: #646464;
				padding: 2px 2px;
			}
			.score_div {
				padding: 2px 5px;
				background: #fff
			}
			.star_score_div {
				padding: 10px;
			}
			.myScore-starscore {
				font-size: 14px;
				color: #646464;
				margin-left: 15px;
			}
			.star_score_div	.myScore-starscore .star img {
				margin-left: 3%;
				width: 18px;
			}
			.star_score_div	.top {
				margin-top: 10px;
			}
			.star {
				width: 67%;
			}
			.left {
				float: left;
			}
			.letter {
				width: 85px;
				line-height: 15px;
				padding: 4px 0px
			}
			.title img {
				height: 20px;
				padding-top: 4px
			}
			.summary_title {
				display: inline-block;
				background: url(../../icon/icon_summary_title.png) no-repeat left center;
				background-size: 20px;
				padding-left: 25px;
				padding-bottom: 0px;
				font-size: 14px;
			}
			.padding25 {
				padding-left: 3px
			}
			.attachment_title {
				display: inline-block;
				background: url(../../icon/icon_attachment.png) no-repeat left center;
				background-size: 18px;
				padding-left: 25px;
			}
			.workname_title {
				display: inline-block;
				background: url(../../icon/icon_workname.png) no-repeat left center;
				background-size: 20px;
				padding-left: 25px;
			}
			.top_title {
				margin-top: 66px
			}
			.writeReport .ReviewWeekly_div {
				margin-top: 0px;
			}
			.attachment_div {
				padding-left: 10px;
				padding-right: 8px;
			}
			.yesorno {
				background: #fff;
				padding: 2px 25px;
				border-bottom: unset;
				border-top: unset;
				margin: 1px 0;
			}
			.yesorno .yesorno-radio {
				margin-top: 5px;
			}
			.weui_cells:after {
               border-bottom: unset; 
            }
            
           /* .yesorno .mui-radio input[type=radio]:checked:before {
               color: #d2a698;
            }*/
		</style>
	</head>
	<body>
		<div class="base_style_color base_title_Immerse" id='BarAppearance' ></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar base_title_position" >
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="newsTitle">实习报告</span>
			<a class="base_right_item nav-item" id="wancheng"> </a>
		</div>
		<div class="base_content_div ">
			<div id="item1" class="mui-control-content mui-active top_10 bottom_30" style="margin-top: 72px;">
				<div class="ReviewWeekly_div top_54 summary_div">
					<div class="feeling">
						<p class="title summary_title font14" >
							实习总结
						</p>
					</div>
					<div class="score_div">
						<div class="feeling-text">
							<p id="jygx" style=" word-break: break-all"></p>
						</div>
					</div>
				</div>
				<div class="text_feel"   id="attachment_div" style="display:none ;border-bottom: unset">
					<div style="padding: 10px 12px;">
						<p class="title attachment_title"style="margin-bottom:0;">
							附件
						</p>
						<div class="feeling-text top_5 left_15" hidden="hidden" id="nullImg">
							<p>
								无
							</p>
						</div>
					</div>
					<div id="attachmentTableView" class="weui_cells fileDownLoad_Div"></div>
				</div>
				<div class="ReviewWeekly_div  summary_div" >
					<div class="feeling">
						<p class="title workname_title font14" >
							是否愿意就业到当前实习单位？
						</p>
					</div>
					<div class="score_div">
						<div class="yesorno">
							<div class="mui-input-row mui-radio yesorno-radio">
								<input name="radio1" type="radio"  value='1' onclick="return false" >
								<label>是</label>
							</div>
							<div class="mui-input-row mui-radio yesorno-radio" >
								<input name="radio1" type="radio" value='0' onclick="return false">
								<label>否</label>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/databaseOperation.js"></script>
	<script src="../../script/attachmentManager.js"></script>
	<script type="text/javascript" src="../../script/base64.min.js"></script>
	<script type="text/javascript" src="../../script/copyTool.js"></script>
	<script type="text/javascript">
		var reportParam;
		var repid = '';
		DBReady = function() {
			sendBuriedNotifi('0', '学生端实习报告列表详情', '097');
			reportParam = api.pageParam;
			repid = reportParam.repid;
			var sxtypes = reportParam.sxtypes;
			//获取学生实习计划状态
			//顶岗实习
			if (sxtypes == 0) {
				$('#dgsxqy').show();
				//给企业师傅评分
				$('#dgsxm').show();
				$('#dgsxls').show();
				//跟岗实习
			} else if (sxtypes == 2) {
				$('#ggsxqy').show();
				$('#ggsxls').show();
			}
			document.getElementById("jygx").readOnly = true;
			setupDownloadAttNotifi();
			loadData();
			blockAddCopyClickWithIdArr(["jygx", "qypytext", "lspytext"]);
		};
		
		 function sendBuriedNotifi(busionessid, pagetype, pagetypeid) {
			var userinfo = {
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjid'),
				uname : $api.getStorage('cfnetppusername'),
			}
			var data = {
				busionessid : busionessid,
				pagetype : pagetype,
				pagetypeid : pagetypeid,
				sourceurl : api.pageParam.sourceurl,
				sourcetitle : api.pageParam.sourcetitle,
				accesspageurl : window.location.pathname,
				accesspagetitle : document.title,
				userinfo : userinfo
			}
			SendBehaviorTrajectoriesNotifi_Study(data);
		}
		function loadData() {
			var param = {
				id : repid,
				jid : $api.getStorage('cfnetppjid')
			};
			cfnetppPOST(urlReport, param, true, function(data, status) {
				if (status == 'success') {
					if (data.status == 1) {
						var list = data.json;
						var xszpArr = list.xszp;
						var lspjArr = list.lspj;
						var qypfArr = list.qypf;
						var urldata = xszpArr.urldata;
						if (urldata != null && urldata != '') {
							$('#attachment_div').show();
						}
						var arr = new Array();
						for (var i = 0; i < urldata.length; i++) {
							var monthData = urldata[i];
							var data = {
								id : monthData.id,
								url : monthData.enclosureurl,
								size : monthData.enclosuresize,
								name : monthData.enclosurename,
							};
							arr.push(data);
						}
						saveAttDatasToDb(arr, '');
						//  学生自评
						var comments = xszpArr.comments;
						var sfyyjy = xszpArr.sfyyjy;
						var sxtd = parseInt(xszpArr.sxtd) / 5;
						var cql = parseInt(xszpArr.cql) / 5;
						var gzwcd = parseInt(xszpArr.gzwcd) / 5;
						var jnzwd = parseInt(xszpArr.jnzwd) / 5;
						if (Base64.decode(comments) == null) {
							document.getElementById("jygx").style.color = "#D9D9D9";
							$('#jygx').text("暂无");
						} else {
							$('#jygx').text(Base64.decode(comments));
						}
						if (sfyyjy == 1) {
							$("input[value='1']").attr("checked", "true")
							$('#rd0').attr("disabled", "false")
						} else {
							$("input[value='0']").attr("checked", "true")
							$('#rd1').attr("disabled", "false")
						}
					}
				}
			});
		}

		function backClick() {
sendBuriedNotifi('1', '学生端实习报告列表详情', '097');
//			SendBehaviorTrajectoriesNotifi1('1', '学生端实习报告列表详情', '097', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			api.closeWin();
		}
	</script>
</html>
